package com.example.activityandintent;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class Activity2 extends Activity{
	private TextView mTextView;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity2);
		
		mTextView=(TextView)findViewById(R.id.text);
		
		Intent intent=getIntent();
		String s=intent.getStringExtra("data");
		mTextView.setText(s);
	}
}
